package com.audaque.springboot.foshanupload.quartzplatform.web.mapper;

import com.audaque.springboot.foshanupload.quartzplatform.web.model.po.JobLogReport;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;


/**
 * @author zgb
 */
@Mapper
public interface JobLogReportMapper extends BaseMapper<JobLogReport> {

    /**
     * 指定报表运行中任务数量+1
     * @param id
     */
    void increaseRunningCount(Integer id);

    /**
     * 指定报表运行成功任务数量+1,运行中任务数量-1
     * @param id
     */
    void increaseSuccessCount(Integer id);

    /**
     * 指定报表运行失败任务数量+1,运行中任务数量-1
     * @param id
     */
    void increaseFailCount(Integer id);

}
